﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Message.Email
{

    /// <summary>
    /// 邮件模板
    /// </summary>
    [SugarTable("Email_Template")]
    public class EmailTemplate : BaseEntity<EmailTemplate, long>
    {
        /// <summary>
        /// 模板名称
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string Name { get; set; }

        /// <summary>
        /// 抄送邮箱地址
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string BccEmailAddresses { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string Subject { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [SugarColumn(ColumnDataType = "longtext,text,clob", IsNullable = false)]
        public string Body { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public bool IsActive { get; set; }

        /// <summary>
        /// 邮箱账户标识符
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public long EmailAccountId { get; set; }

        /// <summary>
        /// 动态替换变量的类
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string VariableClass {  get; set; }
    }
}
